import { createApp } from 'vue'
import App from './App.vue'
import './style.scss'
const app = createApp(App)
import HospitalTop from './components/hospital_top/HospitalTop.vue'
app.component('HospitalTop', HospitalTop)
import HospitalBottom from './components/hospital_bottom/HospitalBottom.vue'
app.component('HospitalBottom',HospitalBottom)
// 上面设置为了全局组件
import router_index from './routers/index'
app.use(router_index)
// 使用了首页的路由
app.mount('#app')
//导入element+
import ElementPlus from 'element-plus'
app.use(ElementPlus, { size: 'small', zIndex: 3000 })
// 导入element+ 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 使用pinia
import  piniaPersist  from 'pinia-plugin-persist'
import { createPinia } from 'pinia'
const pinia = createPinia()
pinia.use(piniaPersist)
app.use(pinia)
